import { SAVE_PRO_INFO } from "../action_types";

let initState = [];
export default function ProductReducer(preState = initState, action) {
  const { type, data } = action;
  let newState;
  switch (type) {
    case SAVE_PRO_INFO:
      newState = data;
      return newState;

    default:
      return preState;
  }
}
